package com.tools.automatic_clock.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class mainrun{

    @Autowired
    auto_service autoservice;
    @Scheduled(cron = "1 20 1 * * *")
    public void run1() throws Exception{
        autoservice.auto_test();
    }
//    @Scheduled(cron = "1 1 2 * * *")
//    public void run2()throws Exception{
//    }
}
